from src.utils.serial_func import test_serial_communication
from src.utils.test_serial import SerialEcho
import tkinter as tk
from src.app import APP

from src.utils.modbus_func import test_sync
from src.utils.state_machine import test_Step_Manager, test_HierarchicalMachine


def main():
    # print("Hello from kongzhiqi-test!")
    root = tk.Tk()
    app = APP(root)
    app.main_loop()


if __name__ == "__main__":
    # serial_echo = SerialEcho('COM2')
    # serial_echo.start_echo()
    # test_serial_communication()
    # test_sync()
    # test_Step_Manager()
    # test_HierarchicalMachine()
    main()
